package cn.yunhe.service;

import cn.yunhe.dao.BlockMapper;
import cn.yunhe.entity.Block;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class BlockService {
    SqlSession session = SqlSessionFactoryUtil.getSqlSession();
    BlockMapper blockMapper = session.getMapper(BlockMapper.class);

    public List<Block> getAllBlock() {
        return blockMapper.getAllBlock();
    }
}
